#ifndef GRAPH
#define GRAPH

#include<stdio.h>
#include<stdbool.h>
#include<stdlib.h>

//extern const int MAX = 6;
#define MAX 7
#define INF 65536

typedef struct node
{
	int vetx;
	double weight;
	struct node *next;
}EdgNode;

typedef struct
{
	int vetx;
	int count;
	EdgNode *first_adj_edg;
}VetxNode;

typedef struct
{
	VetxNode vetxs[MAX];
	int v_num, e_num;
}AdjList;

void create (AdjList **, double [][7], int, int);
void insert_front (AdjList *, int, int, double);
void print (AdjList *);
void destroy (AdjList *);
void top_sort (AdjList *);

#endif
